package com.ruoyi.mqtt.pojo;

//import com.baomidou.mybatisplus.annotation.IdType;
//import com.baomidou.mybatisplus.annotation.TableId;
//import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: RuoYi-Cloud-master
 * @ClassName MqttLogs
 * @description:
 * @author:
 * @create: 2023-11-28 20:10
 * @Version 1.0
 **/
@Data
@TableName(value = "tb_mqtt_log")
public class MqttLogs extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String topic;
    private String vin;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime time;
    private Double temperature;
    private Double humidity;
    private Double maxTemperature;
    private Double minTemperature;
    private Double maxHumidity;
    private Double minHumidity;
    private String abnormal;

}
